﻿<local:BaseSpeakerListEntityPart
    x:Class="Conference.UX.WinRT.Views.SpeakerListEntityPart"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Conference.UX.WinRT.Views"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:tcl="using:TeaLightV5.Foundation.UX.WinRT.Controls"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400">
    
    <Grid>
        <ListBox Grid.Row="1" Grid.Column="0" ItemsSource="{Binding Data}" HorizontalContentAlignment="Stretch" >
            <ListBox.ItemTemplate>
                <DataTemplate >
                    <tcl:StackPanel TapCommand="{Binding ReadCommand}" >
                        <tcl:StackPanel DataContext="{Binding Data}" >
                            <TextBlock Text="{Binding Name, Mode=TwoWay}" />
                            <TextBlock Text="{Binding Title}" TextWrapping="Wrap"/>
                        </tcl:StackPanel>
                    </tcl:StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Grid>
</local:BaseSpeakerListEntityPart>
